
console.log( '1' );

setTimeout( ()=> console.log( '2' ) , 100 );

new Promise( (fulfill,reject) => {
    console.log( '3' );
    setTimeout( ()=> { 
        console.log( '4' );
        //fulfill();
        reject(); 
    } , 50 );
    console.log( '5' );
}).then( () => console.log('6') )
.catch( () => console.log('7') )
.then( () => console.log('8') )
.finally( () => console.log('9') );

console.log( '10' );